;ControlFocus("title", "text", controlID) Edit1=Edit instance 1
ControlFocus($CmdLine[1], "","Edit1")

;Dim $aaa=111
;MsgBox(4096, "Test", $CmdLine[1], 10)

;Wait 10 seconds for the Upload window to appear
WinWait("[CLASS:#32770]", "",5)

;Set the File name thext on the Edit field
ControlSetText($CmdLine[1], "", "Edit1", $CmdLine[2])
Sleep(1000)

;Click on the Open button
ControlClick($CmdLine[1], "", "Button1");